package com.koron.order.overhaulExperimentRel.mapper;

import com.koron.order.overhaulExperimentRel.bean.po.OverhaulExperimentRelPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 大修工单与试验工单的关联表(OverhaulExperimentRel)表数据库访问层
 *
 * @author zhouj
 * @since 2022-04-21 11:20:48
 */
public interface OverhaulExperimentRelMapper {

    int insertOrUpdate(OverhaulExperimentRelPo overhaulExperimentRel);

    int insertOrUpdateBatch(@Param("list") List<OverhaulExperimentRelPo> overhaulExperimentRelList);

    int insert(OverhaulExperimentRelPo overhaulExperimentRel);

    int insertBatch(@Param("list") List<OverhaulExperimentRelPo> overhaulExperimentRelList);

    int update(OverhaulExperimentRelPo overhaulExperimentRel);

    int deleteById(Integer id);

    int deleteByOverhaulId(@Param("overhaulId") String overhaulId, @Param("experimentId") String experimentId);

    OverhaulExperimentRelPo queryById(Integer id);

    List<OverhaulExperimentRelPo> queryList(OverhaulExperimentRelPo overhaulExperimentRel);

}